import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import * as echarts from 'echarts';

//引入全局守卫
import './router/permision';


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//添加小图标
import "../iconfont/iconfont.css"
import "../iconfont/font/iconfont.css"

//引入国际化i18n
import VueI18n from 'vue-i18n'

Vue.use(ElementUI);

Vue.use(VueI18n);
//创建i18n实例
const i18n = new VueI18n({
  locale:"zh",
  messages:{
    'zh':require('./lang/zh'),
    'en':require('./lang/en')
  }
})

Vue.config.productionTip = false;
Vue.prototype.$echarts = echarts;

window.vm =new Vue({
  el:"#app",
  i18n,
  router,
  store,
  render: h => h(App)
})
